<?php
/**
 * Project_model.php
 *
 * $Id:$
 */
 
class Project_model extends CI_Model
{
	function __construct()
	{
		parent::__construct();
		$this->load->database();
	}
	
	function get_by_id($project_id, $include_deleted = FALSE)
	{
		$query = $this->db->from('project')
			->where('id', $project_id);
		
		if($include_deleted == FALSE)
		{
			$query->where('flag', OA_CONST_PROJECT::FLAG_NORMAL);
		}
			
		return $query->get()->row_array();
	}
}

/* End file of Project_model.php */
/* Location: Project_model.php */